import urllib,urllib2
import JSON
header_dict = {
		'token': '61ea924b050ca0446b0ab32003afb44ab5f8'}
url='http://192.168.62.24:30010/nlogin/'
textmod = {'userId':'12410','chatId':'10062'}
textmod = urllib.urlencode(textmod)
# get请求
req = urllib2.Request(url = '%s%s%s' % (url,'?',textmod),headers=header_dict)
res = urllib2.urlopen(req)
res = res.read()
print(res)
data = JSON.loads(res)
print(data['userId'])